package com.study.edoc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
// 批量扫描指定包中Mapper接口生成代理对象
@MapperScan(basePackages = {"com.study.edoc.dao"})
//开启事务管理
@EnableTransactionManagement
public class EdocMainApplication {

    public static void main(String[] args) {

        SpringApplication.run(EdocMainApplication.class, args);
    }

}
